<template>
    <div class="layout">
        <div class="header">学生信息查看</div>
        <div class="dataList">
            <div class="item" @click="toPage('infoView-seeleave')">
                <div class="info">
                    <span>请假情况</span>
                    <span>查看学生请假，出入校情况</span>
                </div>
                <img :src="PUBLIC_URL + '/icon-check02.svg'" alt="" />
            </div>
        </div>
    </div>
</template>

<script setup>
import { useRouter } from 'vue-router';
const PUBLIC_URL = import.meta.env.VITE_APP_IMAGE_URL;
const router = useRouter();

const toPage = name => {
    router.push({ name: name });
};
</script>

<style scoped lang="scss">
.layout {
    width: 100vw;
    height: 100vh;
    background-color: #f7f7f7;
    font-size: 16rem;
    color: #333;
    display: flex;
    justify-content: start;
    align-items: center;
    flex-direction: column;
    .header {
        width: 100%;
        height: 5%;
        background-color: #23a0f3;
        color: #fff;
        display: flex;
        justify-content: center;
        align-items: center;
    }
    .dataList {
        margin-top: 5%;
        width: 100%;
        height: 90%;
        overflow: auto;
        display: flex;
        flex-direction: column;
        align-items: center;
        color: #666;
        .item {
            padding: 10rem;
            display: flex;
            justify-content: space-around;
            width: 95%;
            height: 10%;
            border: 1px solid #ccc;
            border-radius: 5rem;
            .info {
                display: flex;
                justify-content: space-around;
                flex-direction: column;
            }
            > img {
                width: 100rem;
            }
        }
    }
}
</style>
